package com.easyctrl.adapter;

import com.easyctrl.sheelview.WheelAdapter; 

public class HourSheelAdatper implements WheelAdapter {

	private static HourSheelAdatper adapter;
	private String[] time;  
	public String getItmeData(int index){
		return time[index];
	}  
	private HourSheelAdatper(String[] time){
		this.time = time;
	}
	public static HourSheelAdatper getAdapter(String[] time){
		if(adapter == null){
			adapter = new HourSheelAdatper(time);
		}
		return adapter;
	} 
	
	@Override
	public int getItemsCount() { 
		return time.length;
	}

	@Override
	public String getItem(int index) { 
		return time[index] +"  ʱ";
	}

	@Override
	public int getMaximumLength() { 
		return 0;
	} 
}
